From 53d2169b643d0c01d0b47702ae5302426eb6e3d8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 26 Sep 2004 04:23:56 +0000 Subject: [PATCH] cursor_pos is in characters, not bytes. (#153332, Owen Taylor) 2004-09-26 Matthias Clasen * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): cursor_pos is in characters, not bytes. (#153332, Owen Taylor) --- ChangeLog | 7 ++++++- ChangeLog.pre-2-10 | 7 ++++++- ChangeLog.pre-2-6 | 7 ++++++- ChangeLog.pre-2-8 | 7 ++++++- gtk/gtkimcontext.c | 4 ++-- 5 files changed, 26 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 952edf6e36..5773c635eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,10 +1,15 @@ +2004-09-26 Matthias Clasen + + * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): + cursor_pos is in characters, not bytes. (#153332, Owen Taylor) + 2004-09-25 Robert Ögren * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0, a further fix for bug #145467. -2004-09-25 Matthias Clasen +2004-09-25 Matthias Clasen * gtk/gtktextiter.c (inside_word_func): Don't access attr[-1]. (#153628, Padraig O'Briain) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 952edf6e36..5773c635eb 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,10 +1,15 @@ +2004-09-26 Matthias Clasen + + * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): + cursor_pos is in characters, not bytes. (#153332, Owen Taylor) + 2004-09-25 Robert Ögren * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0, a further fix for bug #145467. -2004-09-25 Matthias Clasen +2004-09-25 Matthias Clasen * gtk/gtktextiter.c (inside_word_func): Don't access attr[-1]. (#153628, Padraig O'Briain) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 952edf6e36..5773c635eb 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,10 +1,15 @@ +2004-09-26 Matthias Clasen + + * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): + cursor_pos is in characters, not bytes. (#153332, Owen Taylor) + 2004-09-25 Robert Ögren * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0, a further fix for bug #145467. -2004-09-25 Matthias Clasen +2004-09-25 Matthias Clasen * gtk/gtktextiter.c (inside_word_func): Don't access attr[-1]. (#153628, Padraig O'Briain) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 952edf6e36..5773c635eb 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,10 +1,15 @@ +2004-09-26 Matthias Clasen + + * gtk/gtkimcontext.c (gtk_im_context_get_preedit_string): + cursor_pos is in characters, not bytes. (#153332, Owen Taylor) + 2004-09-25 Robert Ögren * gdk/win32/gdkinput-win32.c (gdk_input_wintab_init): Set lcSysOrgX and lcSysOrgY from device instead of hardcoding to 0, a further fix for bug #145467. -2004-09-25 Matthias Clasen +2004-09-25 Matthias Clasen * gtk/gtktextiter.c (inside_word_func): Don't access attr[-1]. (#153628, Padraig O'Briain) diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c index 58706832b1..3f993cfa40 100644 --- a/gtk/gtkimcontext.c +++ b/gtk/gtkimcontext.c @@ -269,7 +269,7 @@ gtk_im_context_set_client_window (GtkIMContext *context, * @attrs: location to store the retrieved attribute list. * When you are done with this list, you must * unreference it with pango_attr_list_unref(). - * @cursor_pos: location to store position of cursor (in bytes) + * @cursor_pos: location to store position of cursor (in characters) * within the preedit string. * * Retrieve the current preedit string for the input context, @@ -522,7 +522,7 @@ gtk_im_context_get_surrounding (GtkIMContext *context, * Asks the widget that the input context is attached to to delete * characters around the cursor position by emitting the * GtkIMContext::delete_surrounding signal. Note that @offset and @n_chars - * are in characters not in bytes, which differs from the usage other + * are in characters not in bytes which differs from the usage other * places in #GtkIMContext. * * In order to use this function, you should first call -- 2.30.2